<div id="uploader-block" style="margin-left: 44px; margin-top: 20px;">
    <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id'                   => 'somemodel-form',
            'action'               => "/uploaders/xupload/upload/start",
            'enableAjaxValidation' => false,
            'htmlOptions'          => array('enctype' => 'multipart/form-data'),
        ));

        $this->widget('xupload.XUpload', array(
            'url'             => "/uploaders/xupload/upload/start",
            'model'           => $model,
            'attribute'       => 'file',
            'multiple'        => true,
            'options'         => array(
                'autoupload'       => true,
                'maxNumberOfFiles' => 3,
                'maxFileSize'      => 300,
                'acceptFileTypes'  => 'js:/(\.|\/)(jpeg)$/i',
            ),
            'htmlOptions'     => array('id' => 'somemodel-form'),
            // 'showForm'  => false,
        ));

        $this->endWidget();
    ?>
</div>
